package ynu.edu.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import ynu.edu.common.dao.LogicDAO;
import ynu.edu.entity.Business;

public interface BusinessDao extends LogicDAO<Business,Long> {
    @Query("select b from Business b where b.name=:name")
    Business findBusinessByName(@Param(value = "name") String name);
}
